home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / var / lib / dpkg / info / libsensors3.postinst < prev    next >
Encoding:
Text File  |  2008-07-04  |  967 b   |  43 lines

  1. #!/bin/sh
  2. # postinst script for libsensors3
  3. #
  4. # Mostly stolen from the Debian xdm scripts
  5. # Copyright 1998, 1999 Branden Robinson.  Licensed under the GNU GPL.
  6. # Acknowlegements to Stephen Early, Mark Eichin, and Manoj Srivastava.
  7. #
  8. # see: dh_installdeb(1)
  9.  
  10. set -e
  11.  
  12. case "$1" in
  13.     configure)
  14.     # Create the device node if MAKEDEV exists
  15.     if [ -x /sbin/MAKEDEV ] ; then
  16.         if [ ! -c /dev/i2c-0 ]; then
  17.             (cd /dev && /sbin/MAKEDEV i2c) || true
  18.         fi
  19.     fi
  20.     # Create the configuration file
  21.     ucf --debconf-ok --three-way /usr/share/libsensors3/sensors.conf.eg /etc/sensors.conf
  22.     ;;
  23.     abort-upgrade|abort-remove|abort-deconfigure)
  24.     ;;
  25.  
  26.     *)
  27.         echo "postinst called with unknown argument \`$1'" >&2
  28.         exit 1
  29.     ;;
  30. esac
  31.  
  32. # dh_installdeb will replace this with shell code automatically
  33. # generated by other debhelper scripts.
  34.  
  35. # Automatically added by dh_makeshlibs
  36. if [ "$1" = "configure" ]; then
  37.     ldconfig
  38. fi
  39. # End automatically added section
  40.  
  41.  
  42. exit 0
  43.